<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class Method extends Validate
{
    protected $rule = [
        "bank_name" => "require",
        "bank_account_name" => "require",
        "bank_number" => "require",
        "bank_open" => "require",
        "wechat_name" => "require",
        "wechat_image" => "require",
        "alipay_name" => "require",
        "alipay_image" => "require"
    ];

    protected $message = [
        'bank_name.require' => '请选择银行',
        'bank_account_name.require' => '请输入开户姓名',
        'bank_number.require' => '请输入银行卡号',
        'bank_open.require' => '请输入开户行地址',
        'wechat_name.require' => '请输入微信真实姓名',
        'wechat_image.require' => '请上传微信收款码',
        'alipay_name.require' => '请输入支付宝真实姓名',
        'alipay_image.require' => '请上传支付宝收款码'
    ];

    protected $scene = [
        'bank' => ['bank_name', 'bank_account_name', 'bank_number', 'bank_open'],
        'wechat' => ['wechat_name', 'wechat_image'],
        'alipay' => ['alipay_name', 'alipay_image']
    ];
}